package puzzel;

import java.awt.Color;

public enum PuzzleColor {

	rood(0),groen(1),geel(2),zwart(3),blauw(4);
	
	
	private int n;
	
	private PuzzleColor(int num){
		n = num;
	}

	public String toString(){
		return name();
	}
	
	public Color toColor(){
		switch(n){
		case(0):
			return Color.RED;
		case(1):
			return Color.GREEN;
		case(2):
			return Color.YELLOW;
		case(3):
			return Color.BLACK;
		case(4):
			return Color.BLUE;
		}
		return Color.BLACK;
	}
	
}

